/**
 * 设置页面title
 */

//导入默认配置
import defaultSettings from '@/settings'

//默认title
const defaultTitle = defaultSettings.title || 'try to be better'

//拼接title
export default function setPageTitle(pageTitle){
	if(pageTitle){
		return `${pageTitle} - ${defaultTitle}`
	}
	return `${defaultTitle}`
}
